﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Menu.UCControl {
    public partial class UCType : UserControl {

       public event EventHandler<PptTypeChangeEventArgs> PptTypeChangeHandler;

        public UCType() {
            InitializeComponent();
        }
        
        private void comboxType_SelectedIndexChanged(object sender, EventArgs e) {
            if (PptTypeChangeHandler != null) {
                PptTypeChangeHandler(this, new PptTypeChangeEventArgs { Index = this.comboxType.SelectedIndex });
            }

        }
    }
    public class PptTypeChangeEventArgs : EventArgs {
        public int Index { get; set; }
    }
    
}
